class Women(object):
    def __init__(self, name, age):
        self.name = name
        self.__age = age

    def __secret(self):
        print(f'{self.name}的年龄是{self.__age}')
        # 无法调用私有属性
    # def friend(self):
    #     print(f'{self.name}的年龄是{self.__age}')
    #     # 普通方法可以调用私有属性


n1 = Women("小红", 18)
# n1.friend()

